/**
 * Created by Administrator on 2016/12/24.
 */
var express = require('express');
var router = express.Router();

var http = require("http");
var request = require("request");





var swiperImg = require("./data/swiperImg.json");
router.get("/fh5/getSwiperImg",function(req,res,next){
    res.json(swiperImg);
})

var allAvailable = require("./data/allAvailable.json");
router.get("/gamePortal/getAllAvailable",function(req,res,next){
    res.json(allAvailable);
})


var newsList = require("./data/newList.json");
router.get("/news/getNewsListByPage",function(req,res,next){
    res.json(newsList);
})


var dayMatchs = require("./data/dayMatchs.json");
router.get("/guess/get7daysMatchs",function(req,res,next){
    res.json(dayMatchs);
})

var matchTypeList = require("./data/matchTypeList.json");
router.get("/guess/getMatchTypeList",function(req,res,next){
    res.json(matchTypeList)
})

var competitionList = require("./data/competitionList.json");
router.get("/guess/getCompetitionList",function(req,res,next){
    res.json(competitionList);
})

// ?bMatchId=6531
var teamAna = require("./data/teamAna.json");
router.get("/quizAnalysis/teamAnalysis",function(req,res,next){
    res.json(teamAna);
})


//?bMatchId=6531
var hisAna = require("./data/hisAna.json");
router.get("/quizAnalysis/teamHistoryVS",function(req,res,next){
    res.json(hisAna);
})

//?bMatchId=5269
var matchInfo = require("./data/matchInfo.json");
router.get("/getMatchInfo",function(req,res,next){
res.json(matchInfo);
})

//?bMatchId=5269
var matchDetail = require("./data/matchDetail.json");
router.get("/bMatchInfo/getMatchDetailList",function(req,res,next){
    res.json(matchDetail);
})


/


// h5 ��ҳ����.
/* GET h5 page. */
router.get("/second",function(req,res,next){
	console.log(req);
    res.json(
		
        {
			
		}
    )
})
var lol = {
            logo : "http://hdj.13322.com/nassets/images/logo_lol.png",
            ads : [
                {pic:"http://game.fdfs.13322.com:80/group1/M00/00/47/ChFGUlhttr-Ae59hAACaXWCn7qQ050.jpg",title:"目标是世界赛三连冠"},
                {pic:"http://game.fdfs.13322.com:80/group1/M00/00/08/ChFGQ1htsoCAM5T7AAEEMxwlE0o433.jpg",title:"2017年LPL春季赛赛程"},
                {pic:"http://game.fdfs.13322.com:80/group1/M00/00/47/ChFGUlhttQ2AbepIAACRIuUuR7w637.jpg",title:"KT VS SKT?  胜负手是中辅"}
            ],
            infos:[
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",
                    info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",
                    info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",
                    info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",
                    info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",
                    info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",
                    info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",
                    info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",
                    info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",
                    info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",
                    info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",
                    info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",
                    info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",
                    info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",
                    info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",
                    info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",
                    info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                }
            ]
        };
		
var csgo = {
	
}
var dota = {
	        logo : "http://hdj.13322.com/nassets/images/logo_dota.png",
            ads : [
                {pic:"http://game.fdfs.13322.com:80/group1/M00/00/08/ChFGQ1htt2iAJ2u2AACdRLSRZ_o078.png",title:"目标是世界赛三连冠"},
                {pic:"http://game.fdfs.13322.com:80/group1/M00/00/47/ChFGUlhttgOABdIGAAMJ59dMRzw377.jpg",title:"2017年LPL春季赛赛程"}
            ],
            infos:[
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                }
            ]
       
}
router.get("/game",function(req,res,next){
		var params = req.query.type || "lol";
		var result = {};
		if (params == "lol") {
			result = lol;
		}
		if (params == "dota") {
			result = dota;
		}
        res.json(
			result
		)
})
var guess = 
		[
			{data : "2017-01-17", week : "星期二", datas:[
						{bMatchId:5266,flag:1,matchName:"2017LCK春季赛---1",matchTime:"16:00",host:"ROX",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld16JGAa4GeAAHAoflafsA664.png",
												guest:"KT",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/00/ChFGUlesJBGASZftAAAqxluRk24766.png"},
						{bMatchId:5268,flag:1,matchName:"2017LCK春季赛---2",matchTime:"16:00",host:"LZ",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld155WAWBsPAAKaGnXAxIk682.png",
												guest:"SSG",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/01/ChFGUlesJYOATvwSAAAnwx3oXbE611.png"},
						{bMatchId:5266,flag:1,matchName:"2017LCK春季赛---3",matchTime:"16:00",host:"ROX",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld16JGAa4GeAAHAoflafsA664.png",
												guest:"KT",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/00/ChFGUlesJBGASZftAAAqxluRk24766.png"},
						{bMatchId:5268,flag:1,matchName:"2017LCK春季赛---4",matchTime:"16:00",host:"LZ",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld155WAWBsPAAKaGnXAxIk682.png",
												guest:"SSG",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/01/ChFGUlesJYOATvwSAAAnwx3oXbE611.png"},
						{bMatchId:5266,flag:1,matchName:"2017LCK春季赛---5",matchTime:"16:00",host:"ROX",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld16JGAa4GeAAHAoflafsA664.png",
												guest:"KT",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/00/ChFGUlesJBGASZftAAAqxluRk24766.png"},
						{bMatchId:5268,flag:1,matchName:"2017LCK春季赛---6",matchTime:"16:00",host:"LZ",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld155WAWBsPAAKaGnXAxIk682.png",
												guest:"SSG",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/01/ChFGUlesJYOATvwSAAAnwx3oXbE611.png"},
						{bMatchId:5266,flag:1,matchName:"2017LCK春季赛---7",matchTime:"16:00",host:"ROX",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld16JGAa4GeAAHAoflafsA664.png",
												guest:"KT",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/00/ChFGUlesJBGASZftAAAqxluRk24766.png"},
						{bMatchId:5268,flag:1,matchName:"2017LCK春季赛---8",matchTime:"16:00",host:"LZ",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld155WAWBsPAAKaGnXAxIk682.png",
												guest:"SSG",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/01/ChFGUlesJYOATvwSAAAnwx3oXbE611.png"},
						{bMatchId:5266,flag:1,matchName:"2017LCK春季赛---9",matchTime:"16:00",host:"ROX",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld16JGAa4GeAAHAoflafsA664.png",
												guest:"KT",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/00/ChFGUlesJBGASZftAAAqxluRk24766.png"},
						{bMatchId:5268,flag:1,matchName:"2017LCK春季赛---10",matchTime:"16:00",host:"LZ",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld155WAWBsPAAKaGnXAxIk682.png",
												guest:"SSG",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/01/ChFGUlesJYOATvwSAAAnwx3oXbE611.png"},
						{bMatchId:5266,flag:1,matchName:"2017LCK春季赛---11",matchTime:"16:00",host:"ROX",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld16JGAa4GeAAHAoflafsA664.png",
												guest:"KT",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/00/ChFGUlesJBGASZftAAAqxluRk24766.png"},
						{bMatchId:5268,flag:1,matchName:"2017LCK春季赛---12",matchTime:"16:00",host:"LZ",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld155WAWBsPAAKaGnXAxIk682.png",
												guest:"SSG",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/01/ChFGUlesJYOATvwSAAAnwx3oXbE611.png"},
						{bMatchId:5266,flag:1,matchName:"2017LCK春季赛---13",matchTime:"16:00",host:"ROX",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld16JGAa4GeAAHAoflafsA664.png",
												guest:"KT",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/00/ChFGUlesJBGASZftAAAqxluRk24766.png"},
						{bMatchId:5268,flag:1,matchName:"2017LCK春季赛---14",matchTime:"16:00",host:"LZ",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld155WAWBsPAAKaGnXAxIk682.png",
												guest:"SSG",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/01/ChFGUlesJYOATvwSAAAnwx3oXbE611.png"},
						{bMatchId:5266,flag:1,matchName:"2017LCK春季赛---15",matchTime:"16:00",host:"ROX",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld16JGAa4GeAAHAoflafsA664.png",
												guest:"KT",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/00/ChFGUlesJBGASZftAAAqxluRk24766.png"},
						{bMatchId:5268,flag:1,matchName:"2017LCK春季赛---16",matchTime:"16:00",host:"LZ",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld155WAWBsPAAKaGnXAxIk682.png",
												guest:"SSG",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/01/ChFGUlesJYOATvwSAAAnwx3oXbE611.png"}
						]
			},
			{data : "2017-01-18", week : "星期三", datas:[
						{bMatchId:5266,flag:1,matchName:"2017LCK春季赛---17",matchTime:"16:00",host:"ROX",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld16JGAa4GeAAHAoflafsA664.png",
												guest:"KT",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/00/ChFGUlesJBGASZftAAAqxluRk24766.png"},
						{bMatchId:5268,flag:1,matchName:"2017LCK春季赛---18",matchTime:"16:00",host:"LZ",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld155WAWBsPAAKaGnXAxIk682.png",
												guest:"SSG",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/01/ChFGUlesJYOATvwSAAAnwx3oXbE611.png"}
						]
			},
			{data : "2017-01-19", week : "星期四", datas:[
						{bMatchId:5266,flag:1,matchName:"2017LCK春季赛---19",matchTime:"16:00",host:"ROX",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld16JGAa4GeAAHAoflafsA664.png",
												guest:"KT",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/00/ChFGUlesJBGASZftAAAqxluRk24766.png"}
						]
			},
			{data : "2017-01-20", week : "星期五", datas:[
						{bMatchId:5266,flag:1,matchName:"2017LCK春季赛---20",matchTime:"16:00",host:"ROX",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld16JGAa4GeAAHAoflafsA664.png",
												guest:"KT",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/00/ChFGUlesJBGASZftAAAqxluRk24766.png"},
						{bMatchId:5268,flag:1,matchName:"2017LCK春季赛---21",matchTime:"16:00",host:"LZ",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld155WAWBsPAAKaGnXAxIk682.png",
												guest:"SSG",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/01/ChFGUlesJYOATvwSAAAnwx3oXbE611.png"}
						]
			}
		]
var ing = [
			{data : "2017-01-11", week : "星期四", datas:[
						{bMatchId:5266,flag:1,matchName:"2017LCK春季赛---19",matchTime:"16:00",host:"ROX",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld16JGAa4GeAAHAoflafsA664.png",
												guest:"KT",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/00/ChFGUlesJBGASZftAAAqxluRk24766.png"}
						]
			},
			{data : "2017-01-12", week : "星期五", datas:[
						{bMatchId:5266,flag:1,matchName:"2017LCK春季赛---20",matchTime:"16:00",host:"ROX",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld16JGAa4GeAAHAoflafsA664.png",
												guest:"KT",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/00/ChFGUlesJBGASZftAAAqxluRk24766.png"},
						{bMatchId:5268,flag:1,matchName:"2017LCK春季赛---21",matchTime:"16:00",host:"LZ",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld155WAWBsPAAKaGnXAxIk682.png",
												guest:"SSG",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/01/ChFGUlesJYOATvwSAAAnwx3oXbE611.png"}
						]
			}
]
router.get("/guess",function(req,res,next){
		var type = req.query.selectType || "1" ; // 1,竞猜中,2,进行中,3,已结束.
		console.log("type",type);
		if (type == "1" || type == 1) {
			res.json({result:guess});
		}
		if (type =="2" || type ==2) {
			res.json({result:ing})
		}
		
});
router.get('/home', function(req, res, next) {
    //res.render('index', { title: 'aa' });
    res.json(
        {
            navs:["首页","竞猜大厅","商城"],
            ads:[
                {pic:"http://game.fdfs.13322.com:80/group1/M00/00/41/ChFGUlhPcZaAKmKnAAJE15wJQNg643.jpg",title:"abc"},
                {pic:"http://game.fdfs.13322.com:80/group1/M00/00/40/ChFGUlhPVmeAQCaOAAjzqJIKPtI284.png",title:"efg"},
                {pic:"http://game.fdfs.13322.com:80/group1/M00/00/40/ChFGUlhPWy6AN2-LAAlDGbBUkQQ409.png",title:"asd"}
            ],
            subnavs:[
                {name:"英雄联盟",link:"lol"},
                {name:"Dota2",link:"dota"},
                {name:"CSGO",link:"csgo"},
                {name:"王者荣耀",link:"wzry"}
            ],
            infos:[
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",
                    info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",
                    info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",
                    info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"
                },
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"},
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"},
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"},
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"},
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"},
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"},
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"},
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"},
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"},
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"},
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"},
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"},
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"},
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"},
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"},
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"},
                {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"},
            ]
        });
});

var lolHall = [
    {data : "2017-01-11", week : "星期四", datas:[
        {bMatchId:5266,flag:1,matchName:"2017LCK春季赛---19",matchTime:"16:00",host:"ROX",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld16JGAa4GeAAHAoflafsA664.png",
            guest:"KT",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/00/ChFGUlesJBGASZftAAAqxluRk24766.png"}
    ]
    },
    {data : "2017-01-12", week : "星期五", datas:[
        {bMatchId:5266,flag:1,matchName:"2017LCK春季赛---20",matchTime:"16:00",host:"ROX",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld16JGAa4GeAAHAoflafsA664.png",
            guest:"KT",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/00/ChFGUlesJBGASZftAAAqxluRk24766.png"},
        {bMatchId:5268,flag:1,matchName:"2017LCK春季赛---21",matchTime:"16:00",host:"LZ",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld155WAWBsPAAKaGnXAxIk682.png",
            guest:"SSG",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/01/ChFGUlesJYOATvwSAAAnwx3oXbE611.png"}
    ]
    },
    {data : "2017-01-12", week : "星期六", datas:[
        {bMatchId:5266,flag:1,matchName:"2017LCK春季赛---20",matchTime:"16:00",host:"ROX",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld16JGAa4GeAAHAoflafsA664.png",
            guest:"KT",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/00/ChFGUlesJBGASZftAAAqxluRk24766.png"},
        {bMatchId:5268,flag:1,matchName:"2017LCK春季赛---21",matchTime:"16:00",host:"LZ",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld155WAWBsPAAKaGnXAxIk682.png",
            guest:"SSG",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/01/ChFGUlesJYOATvwSAAAnwx3oXbE611.png"}
    ]
    }
]
var dotahall=[
    {data : "2017-01-11", week : "星期一", datas:[
        {bMatchId:5266,flag:1,matchName:"2017LCK春季赛---19",matchTime:"16:00",host:"ROX",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/02/Cj2sUld16JGAa4GeAAHAoflafsA664.png",
            guest:"KT",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/00/ChFGUlesJBGASZftAAAqxluRk24766.png"}
    ]
    }
]

router.get('/hall',function(req,res,next){
    var type = req.query.type || "1" ; //1.  英雄联盟, 2. dota2, 3.s炉石传说.   ? id.
    if (type == "1" || type == 1) {
        res.json({result:lolHall});
    }else if(type == "2" || type ==2){
        res.json({result:dotahall});
    }else if(type=="3" || type==3){
        res.json({result:null});
    }

})
//竞猜详情
var guessDetailList={
    code:200,
    data:[
        {
            code:'FD',
            list:[
                {   competitionId: 3835,
                    code: "FD",
                    competitionName: "第一条小龙",
                    odds: 1.02,
                    matchDetailId: 4890,
                    teamId: "133220000181",
                    teamName: "ROX",
                    bo: 1,
                    sortNumber: 5,
                    headers: 0,
                    otherForOrder: 0
                },
                {  competitionId: 3836,
                    code: "FD",
                    competitionName: "第一条小龙",
                    odds: 0.84,
                    matchDetailId: 4890,
                    teamId: "21",
                    teamName: "KT",
                    bo: 1,
                    sortNumber: 5,
                    headers: 0,
                    otherForOrder: 0
                }
            ]
        },
        {
            code:'Win',
            list:[
                {
                    competitionId: 3823,
                    competitionName: "Menang",
                    odds: 1.61,
                    matchDetailId: 4890,
                    teamId: "133220000181",
                    teamName: "ROX",
                    bo: 1,
                    sortNumber: 1,
                    headers: 0,
                    otherForOrder: 0
                },
                {
                    competitionId: 3824,
                    competitionName: "Menang",
                    odds: 0.25,
                    matchDetailId: 4890,
                    teamId: "21",
                    teamName: "KT",
                    bo: 1,
                    sortNumber: 1,
                    headers: 0,
                    otherForOrder: 0
                }
            ]
        },
        {
            code:'Fb',
            list:[
                {
                    competitionId: 3829,
                    competitionName: "一血",
                    odds: 1.05,
                    matchDetailId: 4890,
                    teamId: "133220000181",
                    teamName: "ROX",
                    bo: 1,
                    sortNumber: 2,
                    headers: 0,
                    otherForOrder: 0
                },
                {
                    competitionId: 3830,
                    competitionName: "一血",
                    odds: 0.71,
                    matchDetailId: 4890,
                    teamId: "21",
                    teamName: "KT",
                    bo: 1,
                    sortNumber: 2,
                    headers: 0,
                    otherForOrder: 0
                }
            ]
        },
        {
            code:'FT',
            list:[
                {
                    competitionId: 3831,
                    competitionName: "一塔",
                    odds: 0.98,
                    matchDetailId: 4890,
                    teamId: "133220000181",
                    teamName: "ROX",
                    bo: 1,
                    sortNumber: 3,
                    headers: 0,
                    otherForOrder: 0
                },
                {
                    competitionId: 3832,
                    competitionName: "一塔",
                    odds: 0.83,
                    matchDetailId: 4890,
                    teamId: "21",
                    teamName: "KT",
                    bo: 1,
                    sortNumber: 3,
                    headers: 0,
                    otherForOrder: 0
                }
            ]
        }
    ]
}
//perfect...
router.get('/guessDetail',function(req,res,next){
    var type=req.query.selectType || "1" ;//1,竞猜列表  2、分析列表
    if(type=="1" || type==1){
        res.json(guessDetailList)
    }else if(type=="1" || type==1){
        res.json({result:"analysis"})
    }

})


// 竞猜列表接口...
router.get("/guess2",function(req,res,next){
    res.json({
        list:[
            {bMatchId:5106,flag:2,game:"2017ESL one Genting主赛事",match:"1:5",date:"10:30",host:"VP",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/05/ChFGQ1hZ6y6ALGKnAAA9uBegxfk331.png",guest:"Fnatic",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/05/ChFGQ1hZ6viABsoXAAA5VIunOzI702.png"},
            {bMatchId:5106,flag:2,game:"2017ESL one Genting主赛事",match:"1:5",date:"10:30",host:"Newbee",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/05/ChFGQ1hZ6rSAazn4AAA1k7jrNpU027.png",guest:"NP",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhZ63KAUwKzAAAQKJMMb8o493.png"},
            {bMatchId:5106,flag:2,game:"2017ESL one Genting主赛事",match:"1:5",date:"10:30",host:"DC",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/05/ChFGQ1hZ6n2AbBiFAABi9fE0OHY500.png",guest:"XctN",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/05/ChFGQ1hZ61OAfuSHAACeNFzdvRs126.png"},
            {bMatchId:5106,flag:2,game:"2017ESL one Genting主赛事",match:"1:5",date:"10:30",host:"VP",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/05/ChFGQ1hZ6y6ALGKnAAA9uBegxfk331.png",guest:"Fnatic",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/05/ChFGQ1hZ6viABsoXAAA5VIunOzI702.png"},
            {bMatchId:5106,flag:2,game:"2017ESL one Genting主赛事",match:"1:5",date:"10:30",host:"Newbee",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/05/ChFGQ1hZ6rSAazn4AAA1k7jrNpU027.png",guest:"NP",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhZ63KAUwKzAAAQKJMMb8o493.png"},
            {bMatchId:5106,flag:2,game:"2017ESL one Genting主赛事",match:"1:5",date:"10:30",host:"DC",hostlogo:"http://game.fdfs.13322.com:80/group1/M00/00/05/ChFGQ1hZ6n2AbBiFAABi9fE0OHY500.png",guest:"XctN",guestlogo:"http://game.fdfs.13322.com:80/group1/M00/00/05/ChFGQ1hZ61OAfuSHAACeNFzdvRs126.png"}
        ]
    })
})


var myGuess={
    code:200,
    profit:[
        {
            dailyIncome:218.6,
            weekIncome:5280,
            monthIncome:52900,
            guessNum:12,
            winRate:65,
            winNum:3
        }
    ],
    list:[
        {date:"2016-05-12",
             time:'12:13',
             matchName:'S6总决赛',
             teamA:'SKT',
             teamB:'Rox',
             gameNum:'第一局',
             guess:'人头比',
             upodd:'3.5',
             odd:'0.75',
             betting:0.75,
             profit:26.1
        },
        {date:"2016-05-12",
            time:'12:13',
            matchName:'S6总决赛',
            teamA:'SKT',
            teamB:'Rox',
            gameNum:'第一局',
            guess:'人头比',
            upodd:'3.5',
            odd:'0.75',
            betting:0.75,
            profit:26.1
        },
        {date:"2016-05-12",
            time:'12:13',
            matchName:'S6总决赛',
            teamA:'SKT',
            teamB:'Rox',
            gameNum:'第一局',
            guess:'人头比',
            upodd:'3.5',
            odd:'0.75',
            betting:0.75,
            profit:26.1
        }
    ]
}

var myGuess2={
    code:200,
    profit:{
        dailyIncome:218.6,
        weekIncome:5280,
        monthIncome:52900,
        guessNum:12,
        winRate:65,
        winNum:3
    },
    list:[
        {date:"2016-05-12",
            time:'12:13',
            matchName:'S6总决赛',
            teamA:'SKT',
            teamB:'Rox',
            gameNum:'第一局',
            guess:'人头比',
            upodd:'3.5',
            odd:'0.75',
            betting:0.75,
            profit:26.1
        },
        {date:"2016-05-12",
            time:'12:13',
            matchName:'S6总决赛',
            teamA:'SKT',
            teamB:'Rox',
            gameNum:'第一局',
            guess:'人头比',
            upodd:'3.5',
            odd:'0.75',
            betting:0.75,
            profit:26.1
        },
        {date:"2016-05-12",
            time:'12:13',
            matchName:'S6总决赛',
            teamA:'SKT',
            teamB:'Rox',
            gameNum:'第一局',
            guess:'人头比',
            upodd:'3.5',
            odd:'0.75',
            betting:0.75,
            profit:26.1
        }
    ]
}
//我的竞猜
router.get("/myGuess",function(req,res,next){
    var id=req.query.id;//id 表示 用户id
    if(id=="1" || id==1){
        res.json(myGuess2);
    }
})


var gameTypeList={
    subnavs:[
        {name:"英雄联盟",link:"lol"},
        {name:"Dota2",link:"dota"},
        {name:"CSGO",link:"csgo"},
        {name:"王者荣耀",link:"wzry"}
    ]
}
//游戏类型
router.get("/getAllAvailable",function(req,res,next){
    res.json({
        code:200,
        data:[
            {code:"lol",gameName:"LOL",imgPath:"http://game2.1332255.com:80/group1/M00/00/10/Cj2sWVhvC_qAVX0DAAAIqvsxHVs276.png",isAvailable:1,sort:1},
            {code:"dota2",gameName:"dota2",imgPath:"http://game2.1332255.com:80/group1/M00/00/0C/Cj2sWVhlwhqAW-i2AAAJSgEnLj0923.png",isAvailable:1,sort:2}
        ]
    })
})


var lolInfoList={
    infos:[
        {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"},
        {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"},
        {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"},
        {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"},
        {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"},
        {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"},
        {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"},
        {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"},
        {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"},
    ]
}
var allInfoList={
    infos:[
        {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"},
        {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"},
        {league:"CSGO",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"},
        {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"},
        {league:"CSGO",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"},
        {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"},
        {league:"CSGO",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"},
        {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"},
        {league:"CSGO",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"},
        {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"},
        {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"},
        {league:"CSGO",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"},
        {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"},
        {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"},
        {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"},
        {league:"CSGO",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"},
        {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"},
        {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"},
        {league:"CSGO",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggLWAQIEnAAIc8EHciN4087.jpg",info:"专访阿布：希望队内做到全华语交流",date:"2016-12-20"},
        {league:"英雄联盟",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhggCGAAtpHAAVKy6DPaoc032.jpg",info:"专访EHOME.K:OG最菜是ANA 希望能参加DAC",date:"2016-12-20"},
        {league:"Dota",pic:"http://game.fdfs.13322.com:80/group1/M00/00/44/ChFGUlhgf9eAFURAAABfGE_M4GU253.jpg",info:"EnVyUs与三位选手续约 Ninja在列",date:"2016-12-20"},
    ]
}

//资讯列表
router.get("/informationList",function(req,res,next){
    var type=req.query.gameCode;
    if(type=='all'){
        res.json(allInfoList);
    }else{
        res.json(lolInfoList);
    }
})

//轮播图
router.get("/swiper",function(req,res,next){
    res.json({
        code:'200',
        data:{
            dataList:[
                {advOrder:null,imgPath:"http://game.fdfs.13322.com:80/group1/M00/00/08/ChFGQ1htsdmAaKHBAAFishBoqIo334.png", remark:null, url:"http://m.cnyxjc.13322.com/adDetail/toMatchADPage?id=13322000002382"},
                {advOrder:null,imgPath:"http://game.fdfs.13322.com:80/group1/M00/00/47/ChFGUlhtr_qAGUIDAAF50a4k_mk435.png", remark:null,url:"http://m.cnyxjc.13322.com/adDetail/toMatchADPage?id=13322000002364"}
            ]
        }
        //,
        //data:[
        //    {advOrder:null,imgPath:"http://game.fdfs.13322.com:80/group1/M00/00/08/ChFGQ1htsdmAaKHBAAFishBoqIo334.png", remark:null, url:"http://m.cnyxjc.13322.com/adDetail/toMatchADPage?id=13322000002382"},
        //    {advOrder:null,imgPath:"http://game.fdfs.13322.com:80/group1/M00/00/47/ChFGUlhtr_qAGUIDAAF50a4k_mk435.png", remark:null,url:"http://m.cnyxjc.13322.com/adDetail/toMatchADPage?id=13322000002364"}
        //]
    });
})


module.exports = router;